export default {
    methods: {
        dataMore(list, tableData, limit = 1000) {
            console.log(list);
            const total = list.length;
            const page = 0;
            limit = limit < list.length ? limit : list.length
            const totalPage = Math.floor(total / limit);

            const render = (page) => {
                if (page >= totalPage) return;
                requestAnimationFrame(() => {
                    for (let i = page * limit; i < page * limit + limit; i++) {
                        const item = list[i];
                        tableData.push(item);
                    }
                    render(page + 1);
                });
            };
            render(page);
        }
    }
}